<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>loading4</title>
  <style>
    * {
      box-sizing: border-box;
    }
    .progress{
      width: 80px;
      height:40px;
      border: 2px solid #000;
      padding: 3px;
      background: repeating-linear-gradient(90deg,#000 0 10px,#0000 0 16px) 0/0% no-repeat content-box content-box;
      animation: p5 2s infinite steps(10);
      position: relative;
    }
    .progress::before{
      content: "";
      position: absolute;
      top:50%;
      left:100%;
      transform: translateY(-50%);
      width: 10px;
      height: 10px;
      border: 2px solid #000;

    }
    @keyframes p5 {
      100% {
        background-size: 110%;
      }
    }
  </style>
</head>

<body>
  <div class="progress"></div>

</body>

</html>